﻿<%@ Page MasterPageFile="~/Site.Master" Language="C#" AutoEventWireup="true" CodeBehind="ProductList.aspx.cs" Inherits="RabbitShop.UI.ProductList" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    
    <table>

        <tr>
            <asp:Repeater runat="server" ID="productRepeater" OnItemDataBound="productRepeater_ItemDataBound" >
                <ItemTemplate>
                    <td>
                        <a href="ProductDetail.aspx?id=<%#Eval("Id") %>" target="_blank" style="display: block;width: 256px;height: 256px;" >
                            <img alt="<%#Eval("SubTitle") %>" src="<%#Eval("MainImage") %>" title="<%#Eval("Title") %>"
                                width="256" height="256" />
                        </a>

                        <br />
                        <a href="ProductListByShop.aspx?id=<%#Eval("Id") %>" target="_blank" >
                            <%#Eval("Title") %>
                        </a>
                        
                        <br />
                        <a href="ProductDetail.aspx?id=<%#Eval("Id") %>" target="_blank" >
                            <%#Eval("Title") %>
                        </a>

                        <br />
                        <%#Eval("PricePerUnit") %>
                    </td>
                    
                </ItemTemplate>
            </asp:Repeater>
        </tr>
    </table>

</asp:Content>